/*
 * Point 定义了一个用于表示点坐标的类型
 * Copyright (C) 2009  LiuHao
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.sysmo.server.graph;

import java.util.Date;

/**
 *
 * @author LiuHao
 */
public class Point {
    private Date time;
    private int value;

    /**
     * 创建点的函数。为一个点赋值
     *
     * @param time 横坐标X，表示一个点所在的时间
     * @param value 纵坐标Y，表示该点在某一时间的值
     */
    public Point(Date time, int value) {
        this.time = time;
        this.value = value;
    }

    /**
     * @return the time
     */
    public Date getTime() {
        return time;
    }

    /**
     * @return the value
     */
    public int getValue() {
        return value;
    }

}
